import type { ILoginForm } from '@/interface/user';
import request from '@/utils/request';
import type { ILoginResponse } from '../interface/login';

export const userLogin = (data: ILoginForm) => {
  return request<ILoginResponse>({
    method: 'post',
    url: '/login/',
    data,
  });
};
